﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Ausy.Silverlight.Survey.AccountModule.Model;

namespace Ausy.Silverlight.Survey.AccountModule.Services.ServiceEventArgs
{
    /// <summary>
    /// Cette classe représente un argument contenant un Compte utilisateur
    /// </summary>
    public class AccountEventArgs : EventArgs
    {
        #region Account

        /// <summary>
        /// Compte utilisateur 
        /// </summary>
        public Account Account { get; private set; }

        #endregion

        #region AlreadyExist Property
        
        /// <summary>
        /// Compte existant ou non
        /// </summary>
        public bool AlreadyExist { get; private set; } 

        #endregion

        #region Constructor

        /// <summary>
        /// Constructeur par défaut par Account
        /// </summary>
        /// <param name="account">Account</param>
        /// <param name="alreadyExist">AlreadyExist</param>
        public AccountEventArgs(Account account, bool alreadyExist)
            : base()
        {
            this.Account = account;
            this.AlreadyExist = alreadyExist;
        }

        #endregion
    }
}
